﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json;
using System.Text.Json.Serialization;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class PackageInfo
    {
        public int Count { get; set; }

        public List<PackageInfoItem> Items { get; set; }
    }

    class PackageInfoItem
    {
        [JsonPropertyName("@id")]
        public string Id { get; set; }

        public int Count { get; set; }

        public string Lower { get; set; }

        public string Upper { get; set; }
    }

    class PackageVersions : PackageInfoItem
    {
        public List<PackageVersionItem> Items { get; set; }
    }

    class PackageVersionItem
    {
        [JsonPropertyName("@id")]
        public string Id { get; set; }

        public PackageVersionInfo CatalogEntry { get; set; }
    }

    class PackageVersionInfo
    {
        public bool Listed { get; set; }

        public string Version { get; set; }
    }
}
